<template>
  <yd-sendcode
	v-model = 'start'
	@click.native = 'sendCode'
	type  = 'warning'
   />
</template>

<script>
import { SendCode } from 'vue-ydui/dist/lib.rem/sendcode'
export default {
  data() {
    return {
		start: false
	}
  },
  components: {
	'yd-sendcode': SendCode
  },
  methods: {
	sendCode() {
		this.$toast({
			type: 'loading',
			message: '加载中...',
			forbidClick: true
		})
		setTimeout(() => {
			this.start = true
			this.$toast.clear()
		}, 1000)
	}
  }
}
</script>

<style lang='scss'>
</style>
